package List;

public class Test {
    public static void main(String[] args) {
        //实例化对象 但对象中的数组并没有被实例化
        //实例化数组的操作在构造函数中实现
        MyArrayList myArrayList = new MyArrayList();

        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(4,9);
        myArrayList.display();
        myArrayList.get(2);
        System.out.println("==================");
        myArrayList.remove(9);
        myArrayList.display();
    }
}
